// 该文件用于创建整个应用的路由

// vueRouer相当于router的构造函数，就跟Vuex.Store是store构造函数一样
import vueRouter from "vue-router";

import About from "../pages/About";
import Home from "../pages/Home";

export default new vueRouter({
  // routes复数，存放所有路由
  routes: [
    {
      path: "/about",
      component: About,
    },
    {
      path: "/home",
      component: Home,
    },
  ],
});
